<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>	


<title>글입력</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#writeForm").submit(function(){
			if($("#noticeTitle").val()==""){
				alert("제목을 입력하세요!");
				return false;
			}else if($("#noticeContent").val()==""){
				alert("본문 내용을 입력하세요!");
				return false;
			}
		});
	});
</script>

<form action="${initParam.root}notice/admin_writeNotice.do" method="post" id="writeForm"  >
 <table class="inputForm" >
    <caption>글쓰기</caption>
    <tbody>
	 <tr>
		<td>제목</td>
		<td><input type="text" name="noticeTitle" id="noticeTitle"></td>
	 </tr>
	 <tr>
		<td>아이디</td>
		<td>${sessionScope.advo.adminId}</td>
	 </tr>
	 <tr>
		<td colspan=2><textarea cols="100" rows="20" name="noticeContent" id="noticeContent"></textarea></td>
	 </tr>
	 </tbody>
 </table>
  <input type="submit" value="등록">
 </form>
